﻿using UnityEngine;
using System.Collections;

public class PlayerController : MonoBehaviour {

	public float movementSpeed;

	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
		if (Input.GetKey(KeyCode.D)) {
			transform.Translate(Vector3.right * movementSpeed);
		}
		else if (Input.GetKey(KeyCode.A)) {
			transform.Translate(Vector3.left * movementSpeed);
		} else if (Input.GetKey(KeyCode.S)) {
			transform.Translate(Vector3.down * movementSpeed);
		} else if (Input.GetKey(KeyCode.W)) {
			transform.Translate(Vector3.up * movementSpeed);
		}
	}
}
